package com.example.shoppingcenter.POJO;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.sql.Timestamp;

@AllArgsConstructor
@NoArgsConstructor
@Data  //@Getter + @Setter + @EqualsAndHashCode + @ToString
@Component
public class Chat {
    private Integer id;
    private Integer userId;
    private Integer lastMessagesId;
    private String chatName;
    private Timestamp time;
}
